//引入公共函数的例子
var common = require('../../common.js');
Page({
  data: {
    src:'../../static/images/image1.gif',
    speakerMsgs: [
      { title: "这是第一条最新动态公告", url: "../index/index", opentype: "navigate" },
      { title: "这是第二条很长很长很长很长很长很长很长很长的最新动态公告", url: "../index/index", opentype: "switchTab" }
    ],
    navItems: ['文明实践', '志愿活动'],
    navItems2: ['文明实践', '志愿活动'],
    navIndex: 0
  },

  navChange: function (index) {
    console.log(index)
    this.setData({ navIndex: index.detail });
  },
  
  // change : function(index){
  //   console.log('切换到第 ' + index.detail + ' 个项目');
  // },

  onLoad: function (){

  }
})